package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_order_detail;
import cn.com.api.mapper.ApiT_order_detailMapper;
import cn.com.api.service.ApiT_order_detailService;
import cn.com.api.service.impl.base.T_order_detailServiceImplBase;

/**
 * 
 **/
@Service
public class ApiT_order_detailServiceImpl extends T_order_detailServiceImplBase implements ApiT_order_detailService {
	@Autowired
	private ApiT_order_detailMapper apiT_order_detailMapper;

	// 新增对象后返回记录ID
	public int T_order_detailInsertion(ApiT_order_detail t_order_detail) {
		return this.apiT_order_detailMapper.T_order_detailInsertion(t_order_detail);
	}

	public ApiT_order_detail findOrderDetailsByMap(Map map) {
		return this.apiT_order_detailMapper.findOrderDetailsByMap(map);
	}

	@Override
	public void batchInsertOrderDetail(List<ApiT_order_detail> list) {
		apiT_order_detailMapper.batchInsertOrderDetail(list);

	}

	@Override
	public List<Map<String, Object>> getOrderDetailByOrderNum(String orderNum) {
		return apiT_order_detailMapper.getOrderDetailByOrderNum(orderNum);
	}

}
